package aw;

import java.io.Serializable;

public class World implements Serializable {

	
	private static final long serialVersionUID = 227L;
	private char[][] _board = new char[3][3]; 
	

	public World(char[][] board) {
		for(int i = 0; i < 3; i++)
			for (int j = 0; j < 3; j++)
				_board[i][j] = board[i][j];
	}

	 public void printBoard() {
    	String s = "\n\n " + 
    				_board[0][0]+" | " +
    				_board[0][1]+" | " +
    				_board[0][2]+" " +
    				"\n---+---+---\n " +
    				_board[1][0]+" | " +
    				_board[1][1]+" | " +
    				_board[1][2]+" " +
    				"\n---+---+---\n " +
    				_board[2][0]+" | " +
    				_board[2][1]+" | " +
    				_board[2][2] + " \n";
    	System.out.print(s);
    }
}